package com.anuo.app.modules.study.entity;


import com.anuo.app.common.entity.EntityBase;
import com.anuo.app.modules.coach.entity.Coach;
import sun.management.snmp.jvmmib.EnumJvmThreadCpuTimeMonitoring;

import java.math.BigDecimal;
import java.util.List;

public class Product extends EntityBase {
    private String name;
    private BigDecimal price;
    private String[] userIds;
    private List<Coach> coachList;

    public List<Coach> getCoachList() {
        return coachList;
    }

    public void setCoachList(List<Coach> coachList) {
        this.coachList = coachList;
    }

    public String[] getUserIds() {
        return userIds;
    }

    public void setUserIds(String[] userIds) {
        this.userIds = userIds;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public void setPrice(double price) {
        this.price = BigDecimal.valueOf(price);
    }

    public void setPrice(int price) {
        this.price = BigDecimal.valueOf(price);
    }

    public Product(String name, double price) {
        super();
        this.name = name;
        this.price = BigDecimal.valueOf(price);
    }

    public Product(String name, int price) {
        super();
        this.name = name;
        this.price = BigDecimal.valueOf(price);
    }

    public Product() {

    }
}
